<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>${fns:getConfig('productName')} 登录</title>
	<meta name="decorator" content="blank"/>
	<link href="${ctxStatic}/static_back/css/public.css" type="text/css" rel="stylesheet">
	<link href="${ctxStatic}/static_back/css/login.css" type="text/css" rel="stylesheet">
</head>
<body>
	<div class="container login-container">
		<div class="login-body">
			<%--标题--%>
			<div class="login-title">
				<div class="login-title-bg blue-bg"></div>
				<h1 class="main-color">第十二届</h1>
			</div>
			<br/>
			<div class="login-title">
				<div class="login-title-bg blue-bg"></div>
				<h1 class="main-color">中国国际航空航天博览会</h1>
			</div>
			<div class="login-main">
				<%--管理后台登录--%>
				<div class="login-box back-login">
					<h2 class="main-color">航展调度管理后台</h2>
					<form id="loginForm" class="form-signin" action="${ctx}/login" method="post">
						<div class="input-div">
							<span>账号</span>
							<div>
								<input type="text" id="username" name="username" value="" />
							</div>
						</div>
						<div class="input-div">
							<span>密码</span>
							<div>
								<input type="password" id="password" name="password" value=""/>
							</div>
						</div>
						<div class="login-form-bottom">
							<span class="loginError">${message}</span>
							<input class="btn btn-big btn-blue" type="submit" value="登 录"/>
						</div>
						<input type="checkbox" id="rememberMe" name="rememberMe" ${rememberMe ? 'checked' : ''} style="display: none"/>
					</form>
				</div>
				<%--信息大屏登录--%>
				<div class="login-box info-login">
					<a href="javascript:void(0)" onclick="window.open('//2018airshow.zhits.com.cn:8083/index.do');"></a>
				</div>
			</div>
		</div>
		<%--页脚--%>
		<div class="login-footer">
			Copyright &copy; 2012-${fns:getConfig('copyrightYear')} <a href="${pageContext.request.contextPath}${fns:getFrontPath()}">${fns:getConfig('productName')}</a> - Powered By <a href="http://jeesite.com" target="_blank">JeeSite</a> ${fns:getConfig('version')}
		</div>
	</div>

	<script type="text/javascript">
		$(document).ready(function() {
			$("#loginForm").validate({
				messages: {
					username: {required: "请填写用户名."},
					password: {required: "请填写密码."}
				},
				errorLabelContainer: "#messageBox",
				errorPlacement: function(error, element) {
					error.appendTo($(".loginError"));
				}
			});
		});
		// 如果在框架或在对话框中，则弹出提示并跳转到首页
		if(self.frameElement && self.frameElement.tagName == "IFRAME" || $('#left').length > 0 || $('.jbox').length > 0){
			alert('未登录或登录超时。请重新登录，谢谢！');
			top.location = "${ctx}";
		}
	</script>
	<%--<script src="${ctxStatic}/flash/zoom.min.js" type="text/javascript"></script>--%>
</body>
</html>